package cn.kgc.spring03.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Author: 课工场
 * @Version: v1.0  2023/2/19
 * @Description:
 */
@Data
@Component("tea")
public class Teacher {

    @Value("lisi")
    private String name;
    @Value("300")
    private Double salary;

}
